<?php

namespace App\Http\Controllers\WebPage;

/**
 * 官网页面的其他数据
 */

use App\Http\Controllers\Controller;


use App\Http\Models\Peacock\Version;

use App\Services\Utils\ApiChecker;
use App\Services\Utils\ApiResponser;


class HomeController extends Controller
{
    use ApiResponser, ApiChecker;

    const DEFAULT_PER_PAGE = 6;

    const LATEST_COLUMN = 'created_at';


    /**
     * 获取满天星最新版的下载地址
     *
     * @return array
     */
    public function getMTXDownLoadUrl()
    {
        $version = Version::find(1);

        $mxt_download_url = $version->url;

        return $this->response(compact('mxt_download_url'));

    }





}
